var assert = require('assert');
var should = require('should');
var util = require('util');
var _ = require('lodash');
var guideModel = require('../../app/models/guideModel');
var config = require('../config');
var guideSchema = require('../../app/schemas/guideSchema');

suite('测试guideModel', function () {
    var guide_model;
    setup(function (done) {
        guideModel.getByRoleId(config.role_id, function (err, model) {
            if (!!model) {
                guide_model = model;
                return done();
            }
        });
    });

    suite('setProgress', function () {
        test('设置新手引导进度', function () {
            guide_model.setProgress(10);
        });
    });

    suite('getGuideList', function () {
        test('获取引导进度列表', function () {
            // guide_model.addGuideList('test');
            // guide_model.save();
            // assert.equal(_.indexOf(guide_model.getGuideList(), 'test') != -1, true);
        });
    });

    suite('addGuideId', function () {
        test('获取引导进度列表', function () {
            //guide_model.addGuideId(4);
            //guide_model.save();            
        });
    });

    suite('getGuideId', function () {
        test('获取引导进度列表', function () {
            //guide_model.getGuideId(3);
            //console.log(guide_model.getGuideId(2));          
        });
    });
});
